

package com.kimo.shop.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kimo.shop.bean.model.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @author kimo-taozhouchuan
 * @date 2020-08-25 15:50:06
 */
public interface SupplierMapper extends BaseMapper<Supplier> {

    List<Supplier> getByShopId(@Param("shopId") Long shopId);

    /**
     * 根据供应商名称获取数量
     * @param supplierName
     * @return
     */
    Integer getCountByName(@Param("supplierName")String supplierName);
}
